<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>跳转中...</title>
</head>
<script>
    function load(){
        document.getElementById("target").click();
    }
    function test(){
        var url="${pageContext.request.contextPath }/index/login";
        window.location.href=url;
    }
</script>
<body onload="load()">

<div id="target" onclick="test()">页面加载中，稍等...</div>

</body>
<html>